home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / File class library / headers / CIsleResFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.6 KB  |  62 lines  |  [TEXT/KAHL]

  1. /*
  2.  
  3.   CIsleResFile.h
  4.   Superclass:    CIsleFile
  5.  
  6.      CResFile (Copyright © 1989 Symantec Corporation. All rights reserved.)
  7.       transplanted into CIsleFile
  8.  
  9.   April 2, 1992  isl
  10.   
  11. */
  12.  
  13. #define _H_CIsleResFile
  14.  
  15. #include    <CIsleFile.h>                            //    Interface for its superclass
  16.  
  17. #define        kResource        'rsrc'                //    The resource file type
  18.  
  19.  
  20. /*=====================*/
  21. /*===---------------===*/
  22.  
  23. class CIsleResFile : public CIsleFile
  24. Begin
  25. public:
  26.     short                        refNum;                        //    Reference number when open
  27.  
  28.     
  29.     void                        IResFile                    //    Initialize the object
  30.                 (void                                                    //    No arguments
  31.                 );
  32.     
  33.     virtual void        Open                            //    Open the file's resource fork
  34.                 (    SignedByte permission                //    Access permissions
  35.                 );
  36.     virtual void        Close                            //    Close the file's resource fork
  37.                 (    void                                                //    No arguments
  38.                 );
  39.     virtual void        MakeCurrent                //    Make this the current resource file
  40.                 (    void                                                //    No arguments
  41.                 );
  42.     virtual Boolean    IsOpen                        //    Is the resource fork of this open?
  43.                 ( void                                                //    No arguments
  44.                 );
  45.     virtual Boolean    HasResFork                //    Does this file have a resource fork?
  46.                 ( void                                                //    No arguments
  47.                 );
  48.     virtual void        CreateNew                    //    Creates a new resource fork and a file, if necessary
  49.                 (    OSType             creator,                //    File's creator
  50.                     OSType            fType                        //    File's type
  51.                 );
  52.     virtual    Boolean    ExistsOnDisk            //    Does the file witha resource fork exist?
  53.                 (    void                                                //    No arguments
  54.                 );
  55.     virtual void        Update                        //    Update the resource fork to disk
  56.                 ( void                                                //    No arguments
  57.                 );
  58.  
  59. End;
  60.  
  61. /*===---------------===*/
  62. /*=====================*/